package com.wwwarehouse.taskcenter.bean.job_point;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

/**
 * author ：minifly
 * date: 2017/10/27
 * time: 13:45
 * desc:
 */
public class TaskPointChooseRelativethingBean {


    private ArrayList<ListBean> list;

    public ArrayList<ListBean> getList() {
        return list;
    }

    public void setList(ArrayList<ListBean> list) {
        this.list = list;
    }

    public static class ListBean implements Parcelable {
        /**
         * categoryName : 测试_作业点1
         * metaCategoryUkid : 11111111
         */

        private String categoryName;
        private long metaCategoryUkid;
        private boolean isClick;

        public String getCategoryName() {
            return categoryName;
        }

        public void setCategoryName(String categoryName) {
            this.categoryName = categoryName;
        }

        public long getMetaCategoryUkid() {
            return metaCategoryUkid;
        }

        public void setMetaCategoryUkid(long metaCategoryUkid) {
            this.metaCategoryUkid = metaCategoryUkid;
        }

        public boolean isClick() {
            return isClick;
        }

        public void setClick(boolean click) {
            isClick = click;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.categoryName);
            dest.writeLong(this.metaCategoryUkid);
            dest.writeByte(this.isClick ? (byte) 1 : (byte) 0);
        }

        public ListBean() {
        }

        protected ListBean(Parcel in) {
            this.categoryName = in.readString();
            this.metaCategoryUkid = in.readLong();
            this.isClick = in.readByte() != 0;
        }

        public static final Parcelable.Creator<ListBean> CREATOR = new Parcelable.Creator<ListBean>() {
            @Override
            public ListBean createFromParcel(Parcel source) {
                return new ListBean(source);
            }

            @Override
            public ListBean[] newArray(int size) {
                return new ListBean[size];
            }
        };
    }
}
